/*
 * Copyright (C), 2002-2017, 南京苏宁软件技术有限公司
 * FileName: StoreModelRel.java
 * Author:   10070706
 * Date:     2017年1月12日 上午11:32:44
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.suning.sawp.po.mainpushnew;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * 功能简述: <br>
 *
 * @author 10070706 陈辉
 */
@Entity(name = "store_model_rel")
public class StoreModelRel implements Serializable {

    /**
     */
    private static final long serialVersionUID = 7745425105919472263L;
    /**
     * 主键id
     */
    private Long id;
    /**
     * 门店任务id
     */
    private Long storeTaskId;
    /**
     * 总部任务id
     */
    private Long hqTaskId;
    /**
     * 款数id
     */
    private Long modelId;
    /**
     * 目标数量
     */
    private Integer targetNum;
    /**
     * 已分配数量
     */
    private Integer distNum;
    /**
     * 分配状态
     */
    private Short distStatus;

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("StoreModelRel [id=").append(id).append(", storeTaskId=").append(storeTaskId)
                .append(", hqTaskId=").append(hqTaskId).append(", modelId=").append(modelId).append(", targetNum=")
                .append(targetNum).append(", distNum=").append(distNum).append(", distStatus=").append(distStatus)
                .append("]");
        return builder.toString();
    }

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.TABLE)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "store_task_id")
    public Long getStoreTaskId() {
        return storeTaskId;
    }

    public void setStoreTaskId(Long storeTaskId) {
        this.storeTaskId = storeTaskId;
    }

    @Column(name = "hq_task_id")
    public Long getHqTaskId() {
        return hqTaskId;
    }

    public void setHqTaskId(Long hqTaskId) {
        this.hqTaskId = hqTaskId;
    }

    @Column(name = "model_id")
    public Long getModelId() {
        return modelId;
    }

    public void setModelId(Long modelId) {
        this.modelId = modelId;
    }

    @Column(name = "target_num")
    public Integer getTargetNum() {
        return targetNum;
    }

    public void setTargetNum(Integer targetNum) {
        this.targetNum = targetNum;
    }

    @Column(name = "dist_num")
    public Integer getDistNum() {
        return distNum;
    }

    public void setDistNum(Integer distNum) {
        this.distNum = distNum;
    }

    @Column(name = "dist_status")
    public Short getDistStatus() {
        return distStatus;
    }

    public void setDistStatus(Short distStatus) {
        this.distStatus = distStatus;
    }

    public interface DistStatus {
        Short NO_ASSGIN = 0;
        Short HAS_ASSGIN = 1;
        Short AGAIN_ASSGIN = 2;
    }
}
